package net.pws.oos.biz.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "b_message")
public class Message extends Identifier {
    
    /**
     * 
     */
    private static final long serialVersionUID = 3099078080675060491L;
    
    public static final String URL_NOTICE = "/biz/notice/read.do?id=";
    
    @Column(name = "user_id")
    private String userId;
    
    private String name;
    
    private String description;
    
    private String url;
    
    @Column(name = "read_flag")
    private boolean read = false;
    
    @Column(name = "create_time")
    private Date createTime;
    
    @Column(name = "read_time")
    private Date readTime;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isRead() {
        return read;
    }

    public void setRead(boolean read) {
        this.read = read;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getReadTime() {
        return readTime;
    }

    public void setReadTime(Date readTime) {
        this.readTime = readTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
